<script setup lang="ts">
// import Store from '@/stores/vuex'
import Basic from '@/layouts/Basic.vue'
import Blank from '@/layouts/Blank.vue'
import Router from '@/router'
const Layout = Router.currentRoute.value.meta.authType === '?' ? Blank : Basic
// const isLoading = Store.getters['loading/getIsLoading']
import zhCN from 'ant-design-vue/es/locale/zh_CN'
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'
dayjs.locale('zh-cn')
</script>

<template>
	<a-config-provider :locale="zhCN">
		<a-spin size="large" :spinning="useLoadingStore().getIsLoading">
			<Layout>
				<slot />
			</Layout>
		</a-spin>
	</a-config-provider>
</template>
